#ifndef DATASERVER_HTTPECHO_H
#define DATASERVER_HTTPECHO_H

typedef struct http_string
{
    int code;
    char str[256];
}HttpString;

int http_echo(FCGX_Request *request, int code, const char *content, int length);
int http_echo_error(FCGX_Request *request, int code, int errcode);
int http_echo_attachment(FCGX_Request *request, int code, const char *content, int length);
char *dp_strerror(int errcode, char *buf, int buflen);

#endif
